package crp.core.security.domain.services.caller;

import com.qwlabs.security.Caller;
import com.qwlabs.security.CallerIdentityRolesProvider;

import javax.enterprise.context.ApplicationScoped;
import java.util.Set;

@ApplicationScoped
public class CallerIdentityRolesProviderImpl implements CallerIdentityRolesProvider {

    @Override
    public Set<String> get(Caller caller) {
        return caller.permissions().raw();
    }
}
